                    <div id="home_album">
                        <ul class="thumbnails">
                        <?php 
                            if (isset($albums)) {
                                foreach ($albums as $album) {
                                    $this->load->helper('util');
                                    echo '
                                        <li class="album">
                                            <div class="thumbnail">
                                                <div class="album_photo">
                                                    <a href="javascript:void(0);" class="post_photo">
                                                        <img src="' . $album['cover']['location'] . '" alt="' . $album['post_title'] . '" title="' . $album['cover']['photo_title'] . '">
                                                        <span class="album_count">共' . $album['photo_num'] . '张</span>
                                                    </a>
                                                </div>
                                                <div class="album_caption">
                                                    <!--加上省略号，最多10个汉字或17个英文字符-->
                                                    <a href="post/show/' . $album['post_id'] . '" value="' . $album['post_id'] . '">
                                                        <h4 rel="trunc-17" data-content="' . $album['post_title'] . '">' . $album['post_title'] . '</h4>
                                                    </a>
                                                    <p>发表于 ' . value_to_timestamp($album['post_time']) . '</p>
                                                </div>
                                            </div>
                                        </li>
                                    ';
                                }
                            }
                        ?>
                        </ul>                         
                    </div>
                    <?php if (isset($albums)) { $this->load->view('post_show/post_photo_carousel'); } ?>